package fr.insee.solr.model.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import fr.insee.solr.model.FieldStrategy;
import fr.insee.solr.model.NullFieldStrategy;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD} )
public @interface SolrField {
	
	String fieldName();
	
	String beanName() default "";
	
	boolean multivalued() default false;
	
	Class<? extends FieldStrategy> fieldStrategy() default NullFieldStrategy.class;
	
	boolean nestedList() default false;
	
	boolean read() default true;
	
	boolean index() default true;
	
}
